/* post-immigration-ame-margins.do --- 
* 
* Filename: post-immigration-ame-margins.do
* Description: 
* Author: Kai Arzheimer
* Created: Fri May 12 09:51:07 2017 (+0200)
* Version: 1.0
* Last-Updated: Mon Mar 26 10:58:47 2012 (+0200)
*           By:
*     Update #: 7
* reads: 
* writes: 
* Compatibility: 14
* 
*/

/* Commentary: 
* Average marginal effect of immigration over time
* 
* 
*/

/* Change log:
* 
* 
*/

/* Code: */


version 14
clear all

do /home/kai/Work/afd/transformation/code/post-margins-header.do

* Look at the average marginal effect of a one point increase on the immigration restriction scale (-5 to +5)

mimrgns using mimymodelstwoadvanced-days , esample(inmisample) predict(mu fixed) cmdmargins at(zintdate=(-792 0 792)) dydx(t154)

marginsplot, title("Average Marginal Effect of One-Point Increase" "on Immigration Attitude Scale with 95% CIs") xlabel(-792 "05/2013" 0 "07/2015" 792 "09/2017") xtitle("") xscale(range(-792 810))

graph export /home/kai/Work/afd/transformation/figures/margins-ame-immigration.eps , replace 









scons_returncode "`1'"





/*  post-immigration-ame-margins.do ends here */
